<?php
namespace App\Traits;
/**
 * Created by PhpStorm.
 * User: daixi
 * Date: 2017/2/21
 * Time: 17:08
 */
trait RoleTrait
{

	public function getIsAdmin(){
		return $this->attributes['role_id'] == ROLE_ADMIN;
	}
	public function getIsAdmin(){
		return $this->attributes['role_id'] == ROLE_ADMIN;
	}
	public function getIsAdmin(){
		return $this->attributes['role_id'] == ROLE_ADMIN;
	}
	public function getIsAdmin(){
		return $this->attributes['role_id'] == ROLE_ADMIN;
	}


}